package com.itheima.mapper;

import com.itheima.pojo.Purchase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PurchaseMapper {
    @Select("select pr.*, u.username, u.phoneNumber from purchaserequests pr inner join users u on pr.user_id = u.id")
    List<Purchase> getPurchaseRequestAll();
}
